import request from '@/utils/request'

// 查询订单信息列表
export function listCcorderinfo(query) {
  return request({
    url: '/business/ccorderinfo/list',
    method: 'get',
    params: query
  })
}

// 查询订单信息列表
export function listCcorderinfoGroup(query) {
  return request({
    url: '/business/ccorderinfo/listGroup',
    method: 'get',
    params: query
  })
}

// 查询订单信息列表
export function listCcorderinfoGroupFj(query) {
  return request({
    url: '/business/ccorderinfo/listGroupFj',
    method: 'get',
    params: query
  })
}


// 查询订单信息详细
export function getCcorderinfo(id) {
  return request({
    url: '/business/ccorderinfo/' + id,
    method: 'get'
  })
}

// 新增订单信息
export function addCcorderinfo(data) {
  return request({
    url: '/business/ccorderinfo',
    method: 'post',
    data: data
  })
}

// 修改订单信息
export function updateCcorderinfo(data) {
  return request({
    url: '/business/ccorderinfo',
    method: 'put',
    data: data
  })
}

// 删除订单信息
export function delCcorderinfo(id) {
  return request({
    url: '/business/ccorderinfo/' + id,
    method: 'delete'
  })
}


// 根据订单编号删除订单信息
export function delCcorderinfoByOrderCode(orderCode) {
  return request({
    url: '/business/ccorderinfo/deleteByOrderCode/' + orderCode,
    method: 'delete'
  })
}

// 下发分拣任务
export function fjrwCcorderinfo(id) {
  return request({
    url: '/business/ccorderinfo/fjrwCcorderinfo/' + id,
    method: 'delete'
  })
}


// 修改打印状态和打印次数
export function updateOrderDyStatus(data) {
  return request({
    url: '/business/ccorderinfo/editOrderDyStatus',
    method: 'put',
    data: data
  })
}



